#pragma once
#include <iostream>
#include <opencv2/opencv.hpp>

class FileOperation {
public:
	FileOperation() {};
	~FileOperation() {};
	static bool createDirectory(const std::string folder);
	static void getImgFileSizeInOrder(const std::string path,uint32_t & number, const std::string pictureFormat);
	static void getImgFileInOrder(const std::string path, uint32_t & number, const std::string pictureFormat, std::vector<cv::Mat>& imgList, int readMode);
	static void saveImgFileInOrder(const std::string path, uint32_t & number, const std::string pictureFormat, const cv::Mat & src);
	static void getAllFilesName(std::string path, std::vector<std::string> & files, uint8_t mode = 1);
}; 
